package com.bestcem.xm.ticket.dao.mapper;

import com.bestcem.xm.ticket.entity.mysql.TicketRuleDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/22 16:41
 */
@Mapper
public interface TicketRuleDaoMapper {

    TicketRuleDO findByTicketRuleId(String ticketRuleId);

    List<TicketRuleDO> listByTicketConfigId(String ticketConfigId);

    List<TicketRuleDO> listByTicketConfigIdAndTicketRuleIdList(String ticketConfigId, List<String> ids);

    void insert(TicketRuleDO ticketRuleDO);

    void updateByTicketRuleId(TicketRuleDO ticketRuleDO);
}
